\documentclass[pad, cn, 12pt, twocol,chineseofnt=founder,
               citestyle=gb7714-2015, bibstyle=gb7714-2015]{elegantbook}

% 载入需要的宏包
\input{settings/packages.tex}
% 进行必要的设置
\input{settings/format.tex}
% 专有名词宏定义
\input{settings/termsmacro.tex}

\title{基于第三方库在标准C语言中实现正则表达式编程}
\subtitle{\cl{}教学案例设计}

\author{\zihao{4} \fangsong 耿楠}
\institute{说C解C}
\ctexset{today=small}
\date{\today}
\version{1.0.0}
\bioinfo{编委}{说C解C团队}

\extrainfo{心无旁骛才有时间思考，而勤于思考的人，终将走向孤独。—— 枯藤散人}

\setcounter{tocdepth}{3}

\logo{figs/regex-logo.png}
\cover{figs/regex-face.png}

\bibliography{reference}
%
\begin{document}

\maketitle

\frontmatter
\tableofcontents
\include{common/ch00.tex}% 前言

\mainmatter
\include{common/ch01.tex}% 概述
\part{GNU Regex正则库}
\include{gnu-regex/contents/ch01.tex}% GNU Regex概述
\include{gnu-regex/contents/ch02.tex}% GNU Regex使用范例
\include{gnu-regex/contents/ch03.tex}% GNU Regex正则样例
\include{gnu-regex/contents/ch04.tex}% GNU Regex正则案例
\part{PCRE2正则库}
\include{pcre2-regex/contents/ch01.tex}% PCRE2概述
\include{pcre2-regex/contents/ch02.tex}% PCRE2使用样例
\include{pcre2-regex/contents/ch03.tex}% PCRE2正则案例
\part{Google CRE2正则库}
\include{google-cre2/contents/ch01.tex}% Google CRE2概述
\include{google-cre2/contents/ch02.tex}% Google CRE2使用范例
\include{google-cre2/contents/ch03.tex}% Google CRE2正则案例
\part{Intel Hyperscan正则库}
\include{intel-Hyperscan/contents/ch01.tex}% Intel Hyperscan概述
\include{intel-Hyperscan/contents/ch02.tex}% Intel Hyperscan使用范例
\include{intel-Hyperscan/contents/ch03.tex}% Intel Hyperscan正则案例

% 参考文献
\nocite{*}
\printbibliography[heading=bibintoc, title=\ebibname]

\appendix
\input{gnu-regex/contents/gnu-app01-macros.tex}% GNU Regex 宏定义(需要使用\input，否则附录目录会有错)
\include{gnu-regex/contents/gnu-app02-registers.tex}% GNU Regex 宏定义
\include{pcre2-regex/contents/pcre2-app01-options.tex}% PCRE2 宏定义
\include{google-cre2/contents/cre2-app01-type-functions.tex}% CRE2 宏定义

\end{document}
